<?php

use Illuminate\Database\Seeder;

class TaggableTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        for ($i=1; $i <= 10; $i++) {
            \App\Models\Taggable::create([
                'taggable_id'   => rand(1,5),
                'taggable_type'    => 'App\Models\Post',
                'tag_id'=>rand(1,5)
            ]);
        }
    }
}
